<template>
    <div id='orders'>
       
        <header1></header1>
        <div class="common_list_con clearfix">
                <div class="order_success">
                    <p><b>订单提交成功，订单总价<em>¥ {{this.$route.params.money}}</em></b></p>
                    <p>您的订单已成功生成，选择您想要的支付方式，订单号： {{this.$route.params.id}}</p>
                    <p><a href="/user_center_order.html">您可以在用户中心中我的订单中查看该订单</a></p>
                </div>
            </div>
        
            <div class="order_submit clearfix">
                <a :href='url'>支付</a>
            </div>

        <footer1></footer1>
        {{geturl}}
    </div>
</template>
<script>
import Header1 from '@/components/Header'
import Footer1 from '@/components/Footer'

export default{
    name:'orderS',
    components:{
		header1:Header1,
		footer1:Footer1
    },
    data:function(){
        return{
            url:''
        }
    },
    created(){
        this.geturl()
    },
    methods: {
        geturl(){
            get_alpay_url()
            var order_id = this.$route.params.id
            var all_money = this.$route.money
            var data={
                "order_id":order_id,
                "all_money":all_money
            }
            get_alpay_url(data)
            .then(res=>{
                this.url = res.data
        })
    },    
}
}
</script>